var express = require('express');
var router = express.Router();

//引入model层内容
let hotModel = require('../model/hotModel');
const bannerModel = require('../model/bannerModel');
const loveModel = require('../model/loveModel');
const flashModel = require('../model/flashModel');
const popularityModel=require('../model/popularityModel');
const rankModel = require('../model/rankModel');
const homeModel = require('../model/homeModel');
const searchModel = require('../model/searchModel');


/* 首页模块 */

router.get('/hot', hotModel());//热搜关键字
router.get('/banner', bannerModel());//轮播图接口
router.get('/love', loveModel());//猜你喜欢
router.get('/popularity',popularityModel());//人气好货
router.get('/flash',flashModel());//秒杀
router.get('/ranking',rankModel());//排行榜
router.get('/home',homeModel());//底部各大板块
router.get('/search',searchModel());//搜索功能


module.exports = router;
